/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Adminis.java
 *
 * Created on 07/01/2009, 11:09:29 PM
 */

package UIDelNegocio;

/**
 *
 * @author Anya
 */
public class Adminis extends javax.swing.JFrame {
public static String name="";
public static String tipo="";

    /** Creates new form Adminis */
    public Adminis(String Nombre, String tipo1) {
        name = Nombre;
        tipo= tipo1;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem10 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("WellDressing");
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jLabel1.setText("Administrador");

        jLabel2.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel2.setText("Usuario:");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Empleados"));

        jLabel5.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png"))); // NOI18N
        jLabel5.setText("Eliminar");
        jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel5MouseClicked(evt);
            }
        });

        jLabel6.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png"))); // NOI18N
        jLabel6.setText("Modificar");
        jLabel6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel6MouseClicked(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png"))); // NOI18N
        jLabel4.setText("Agregar");
        jLabel4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel4MouseClicked(evt);
            }
        });

        jLabel3.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png"))); // NOI18N
        jLabel3.setText("Buscar");
        jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel3MouseClicked(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("Verdana", 1, 12));
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/departamentos.jpg"))); // NOI18N

        jLabel8.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/masmenos.png"))); // NOI18N
        jLabel8.setText("Localidades con mayor/menor tamaño");
        jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel8MouseClicked(evt);
            }
        });

        jLabel9.setFont(new java.awt.Font("Verdana", 1, 12)); // NOI18N
        jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/masmenos.png"))); // NOI18N
        jLabel9.setText("Proveedores con mas Ordenes de Compra");
        jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel9MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(26, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(175, 175, 175)
                        .addComponent(jLabel4))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(82, 82, 82)
                                .addComponent(jLabel7)
                                .addGap(79, 79, 79)
                                .addComponent(jLabel6))
                            .addComponent(jLabel8)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(110, 110, 110)
                                .addComponent(jLabel5))
                            .addComponent(jLabel9))))
                .addGap(75, 75, 75))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel9)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(33, 33, 33)
                        .addComponent(jLabel3)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(18, 18, 18)
                                .addComponent(jLabel7))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addComponent(jLabel6)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)))
                .addGap(25, 25, 25))
        );

        jMenu1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu1.setText("Actividades");

        jMenuItem1.setText("Empleados");
        jMenuItem1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem1MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuItem2.setText("Localidades");
        jMenuItem2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem2MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuItem3.setText("Proveedores");
        jMenuItem3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem3MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        jMenuItem4.setText("Productos");
        jMenuItem4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem4MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem4);

        jMenuItem5.setText("Empresas de Vigilancia");
        jMenuItem5.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem5MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem5);

        jMenuItem6.setText("Solicitudes");
        jMenuItem6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem6MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem6);

        jMenuItem7.setText("Camiones");
        jMenuItem7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem7MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem7);

        jMenuItem8.setText("Departamentos, Clases y Subclses");
        jMenuItem8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem8MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem8);

        jMenuItem10.setText("Estadisticas");
        jMenuItem10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem10MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem10);

        jMenuItem9.setText("Cerrar");
        jMenuItem9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                jMenuItem9MousePressed(evt);
            }
        });
        jMenu1.add(jMenuItem9);

        jMenuBar1.add(jMenu1);

        jMenu2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenu2.setText("Ayuda");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGap(402, 402, 402)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem9MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem9MousePressed
        this.setVisible(false);
    }//GEN-LAST:event_jMenuItem9MousePressed

    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        if(tipo.compareTo("")== 0)
        {
            jPanel1.setVisible(false);
            jLabel8.setVisible(false);
            jLabel9.setVisible(false);
        }
        else
        {
            jLabel8.setVisible(false);
            jLabel9.setVisible(false);
            if(tipo.compareTo("Empleados")== 0)
            {
                 jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/empleados_satisfechos.jpg")));
                 jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Empleados"));
            }
            else if (tipo.compareTo("Localidades")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/tiendas.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Localidades"));
            }
            else if(tipo.compareTo("Proveedores")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/proveedores.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Proveedores"));
            }
            else if(tipo.compareTo("Producto")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/productos.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Producto"));
            }
            else if(tipo.compareTo("Empresas de Vigilancia")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/vigilancia.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Empresas de Vigilancia"));
            }
            else if(tipo.compareTo("Solicitudes")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/solicitudes.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Solicitudes"));
            }
            else if(tipo.compareTo("Camiones")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/camiones.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Camiones"));
            }
            else if(tipo.compareTo("Departamentos, Clases y Subclases")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/departamentos.jpg")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Departamentos, Clases y Subclases"));
            }
            else if(tipo.compareTo("Estadisticas")== 0)
            {
                jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/estadisticas.jpg")));
                jLabel5.setText("Tienda con mayor/menor varieded de productos");
                jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/mayormenor.png")));
                jLabel3.setText("Productos mas solicitados");
                jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/maspro.png")));
                jLabel6.setText("Camioneros con mas entregas");
                jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/camionerosen.png")));
                jLabel4.setText("Productos con mayor inventario");
                jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/Line Chart.png")));
                jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Estadisticas"));
                jLabel8.setVisible(true);
                jLabel9.setVisible(true);
            }
             jPanel1.setVisible(true);
        }
        jLabel1.setText(name);
    }//GEN-LAST:event_formWindowActivated

    private void jMenuItem1MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem1MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/empleados_satisfechos.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Empleados"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Empleados";

    }//GEN-LAST:event_jMenuItem1MousePressed

    private void jMenuItem2MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem2MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/tiendas.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Localidades"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Localidades";
    }//GEN-LAST:event_jMenuItem2MousePressed

    private void jMenuItem3MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem3MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/proveedores.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Proveedores"));jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Proveedores";
    }//GEN-LAST:event_jMenuItem3MousePressed

    private void jMenuItem4MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem4MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/productos.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Producto"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Producto";
    }//GEN-LAST:event_jMenuItem4MousePressed

    private void jMenuItem5MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem5MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/vigilancia.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Empresas de Vigilancia"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Empresas de Vigilancia";
    }//GEN-LAST:event_jMenuItem5MousePressed

    private void jMenuItem6MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem6MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/solicitudes.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Solicitudes"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Crear");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Solicitudes";
    }//GEN-LAST:event_jMenuItem6MousePressed

    private void jMenuItem7MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem7MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/camiones.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Camiones"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Buscar");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Camiones";
    }//GEN-LAST:event_jMenuItem7MousePressed

    private void jMenuItem8MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem8MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/departamentos.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Departamentos, Clases y Subclases"));
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/agregar.png")));
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/eliminar.png")));
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/modificar.png")));
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/buscar.png")));
        jLabel4.setText("Agregar");
        jLabel5.setText("Eliminar");
        jLabel6.setText("Modificar");
        jLabel3.setText("Ver");
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jPanel1.setVisible(true);
        tipo= "Departamentos, Clases y Subclases";
    }//GEN-LAST:event_jMenuItem8MousePressed

    private void jMenuItem10MousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuItem10MousePressed
        jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/estadisticas.jpg")));
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Estadisticas"));
        jLabel5.setText("Tienda con mayor/menor varieded de productos");
        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/mayormenor.png")));
        jLabel3.setText("Productos mas solicitados");
        jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/maspro.png")));
        jLabel6.setText("Camioneros con mas entregas");
        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/camionerosen.png")));
        jLabel4.setText("Productos con mayor inventario");
        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/UIDelNegocio/Line Chart.png")));
        jLabel8.setVisible(true);
        jLabel9.setVisible(true);
        jPanel1.setVisible(true);
        tipo= "Estadisticas";
    }//GEN-LAST:event_jMenuItem10MousePressed

    private void jLabel4MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel4MouseClicked
       if(tipo.compareTo("Empleados")== 0)
       {
            AgregarEmpleado vent= new AgregarEmpleado(name,tipo);
            vent.setVisible(true);
            this.setVisible(false);
       }
       else if (tipo.compareTo("Localidades")== 0)
       {
           AgregarTienda vent= new AgregarTienda(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Proveedores")== 0)
       {
           AgregarProveedor vent= new AgregarProveedor(name,tipo,1);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Producto")== 0)
       {
           AgregarProducto vent= new AgregarProducto(name,tipo,"");
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Empresas de Vigilancia")== 0)
       {
           AgregarVigi vent= new AgregarVigi(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Solicitudes")== 0)
       {
           CrearSol vent= new CrearSol(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Camiones")== 0)
       {
           AgregarCamiones vent= new AgregarCamiones(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Departamentos, Clases y Subclases")== 0)
       {
           AgregarDCS vent= new AgregarDCS(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Estadisticas")== 0)
       {
           Estadisticas vent= new Estadisticas(name,tipo,1);
           vent.setVisible(true);
           this.setVisible(false);
       }
    }//GEN-LAST:event_jLabel4MouseClicked

    private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MouseClicked
        if(tipo.compareTo("Empleados")== 0)
        {
            BuscarEmpleado vent= new BuscarEmpleado(name,tipo,1);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Localidades")== 0)
       {
            BuscarTienda vent= new BuscarTienda(name,tipo,1);
            vent.setVisible(true);
            this.setVisible(false);
       }
       else if (tipo.compareTo("Proveedores")== 0)
       {
            BuscarProveedor vent= new BuscarProveedor(name,tipo,1);
            vent.setVisible(true);
            this.setVisible(false);
       }
        else if (tipo.compareTo("Producto")== 0)
        {
             BuscarProducto vent= new BuscarProducto(name,tipo,1);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Empresas de Vigilancia")== 0)
        {
             BuscarVigi vent= new BuscarVigi(name,tipo,1);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Solicitudes")== 0)
        {
             BuscarSol vent= new BuscarSol(name,tipo,1);
             vent.setVisible(true);
             this.setVisible(false);
        }
       else if (tipo.compareTo("Camiones")== 0)
       {
           BuscarCamiones vent= new BuscarCamiones(name,tipo,1);
           vent.setVisible(true);
           this.setVisible(false);
       }
       else if (tipo.compareTo("Departamentos, Clases y Subclases")== 0)
       {
           BuscarDCS vent= new BuscarDCS(name,tipo,1);
           vent.setVisible(true);
           this.setVisible(false);
       }
        else if (tipo.compareTo("Estadisticas")== 0)
       {
           Estadisticas vent= new Estadisticas(name,tipo,2);
           vent.setVisible(true);
           this.setVisible(false);
       }
    }//GEN-LAST:event_jLabel3MouseClicked

    private void jLabel5MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel5MouseClicked
        if(tipo.compareTo("Empleados")== 0)
        {
            BuscarEmpleado vent= new BuscarEmpleado(name,tipo,2);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Localidades")== 0)
       {
            BuscarTienda vent= new BuscarTienda(name,tipo,2);
            vent.setVisible(true);
            this.setVisible(false);
       }
        else if (tipo.compareTo("Proveedores")== 0)
        {
            BuscarProveedor vent= new BuscarProveedor(name,tipo,2);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Producto")== 0)
        {
             BuscarProducto vent= new BuscarProducto(name,tipo,2);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Empresas de Vigilancia")== 0)
        {
             BuscarVigi vent= new BuscarVigi(name,tipo,2);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Solicitudes")== 0)
        {
             BuscarSol vent= new BuscarSol(name,tipo,2);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Camiones")== 0)
        {
           BuscarCamiones vent= new BuscarCamiones(name,tipo,2);
           vent.setVisible(true);
           this.setVisible(false);
        }
        else if (tipo.compareTo("Departamentos, Clases y Subclases")== 0)
        {
           BuscarDCS vent= new BuscarDCS(name,tipo,2);
           vent.setVisible(true);
           this.setVisible(false);
        }
        else if (tipo.compareTo("Estadisticas")== 0)
        {
           Estadisticas vent= new Estadisticas(name,tipo,3);
           vent.setVisible(true);
           this.setVisible(false);
        }
    }//GEN-LAST:event_jLabel5MouseClicked

    private void jLabel6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel6MouseClicked
        if(tipo.compareTo("Empleados")== 0)
        {
            ModEmpleado vent= new ModEmpleado(name,tipo);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Localidades")== 0)
        {
            ModTienda vent= new ModTienda(name,tipo);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Proveedores")== 0)
        {
            ModProveedor vent= new ModProveedor(name,tipo);
            vent.setVisible(true);
            this.setVisible(false);
        }
        else if (tipo.compareTo("Producto")== 0)
        {
             ModProducto vent= new ModProducto(name,tipo);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Empresas de Vigilancia")== 0)
        {
             ModVigi vent= new ModVigi(name,tipo);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Solicitudes")== 0)
        {
             ModSol vent= new ModSol(name,tipo);
             vent.setVisible(true);
             this.setVisible(false);
        }
        else if (tipo.compareTo("Camiones")== 0)
        {
           ModCamiones vent= new ModCamiones(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
        }
        else if (tipo.compareTo("Departamentos, Clases y Subclases")== 0)
        {
           ModDCS vent= new ModDCS(name,tipo);
           vent.setVisible(true);
           this.setVisible(false);
        }
        else if (tipo.compareTo("Estadisticas")== 0)
        {
           Estadisticas vent= new Estadisticas(name,tipo,4);
           vent.setVisible(true);
           this.setVisible(false);
        }
    }//GEN-LAST:event_jLabel6MouseClicked

    private void jLabel9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel9MouseClicked
          Estadisticas vent= new Estadisticas(name,tipo,5);
           vent.setVisible(true);
           this.setVisible(false);
    }//GEN-LAST:event_jLabel9MouseClicked

    private void jLabel8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel8MouseClicked
           Estadisticas vent= new Estadisticas(name,tipo,6);
           vent.setVisible(true);
           this.setVisible(false);
    }//GEN-LAST:event_jLabel8MouseClicked

    /**
    * @param args the command line arguments
    */
   /* public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Adminis().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem10;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables

}
